﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp17
{
    class Student
    {
        public int nun { get; set; }
        public string name { get; set; }
        public int age { get; set; }

        public Student(int nun, string name, int age)
        {
            this.nun = nun;
            this.name = name;
            this.age = age;
        }
        public override string ToString()
        {
            return $"学号是{nun}，姓名是{name}，年龄是{age}";
        }
    }
}
